import Taro, { Component, Config } from "@tarojs/taro";
import { View, ScrollView, Image, Text } from "@tarojs/components";

import './index.less'
import icon_34 from '../../assets/img/icon_34.png'
import icon_35 from '../../assets/img/icon_35.png'
import icon_36 from '../../assets/img/icon_36.png'
import {getRuntime} from "../../utils/common";


// 工商服务中心-首页
class Page4 extends Component{
  constructor(){
    super()
  }

  componentWillMount(): void {
    Taro.setNavigationBarTitle({title: '其他服务'})
  }

  handelRouter(url: string = '/pages/index/index'): void {
    getRuntime().navigateTo(url)
  }
  onScroll () {}
  render() {
    return(
      <View className='business-other'>
        <View className='business-item' onClick={this.handelRouter.bind(this, '/pages/business/page4_water?type=4')}>
          <Image className='business-bg' src={icon_34} />
          <View className='business-info'>
            <View className='title'>水利安全达标</View>
            <View className='desc'>水利安全生产标准化达标评审申请</View>
            <View className='btn btn1'>立即办理></View>
          </View>
        </View>

        <View className='business-item' onClick={this.handelRouter.bind(this, '/pages/business/page4_water?type=5')}>
          <Image className='business-bg' src={icon_35} />
          <View className='business-info'>
            <View className='title'>水利信用评级</View>
            <View className='desc'>水利建设市场主体信用信息申报</View>
            <View className='btn btn2'>立即办理></View>
          </View>
        </View>

        <View className='business-item' onClick={this.handelRouter.bind(this, '/pages/business/page4_water?type=6')}>
          <Image className='business-bg' src={icon_36} />
          <View className='business-info'>
            <View className='title-en'>公路安全达标</View>
            <View className='desc'>公路施工建设安全生产标准化</View>
            <View className='btn btn3'>立即办理></View>
          </View>
        </View>
      </View>
    )
  }
}

export default Page4
